<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2017/2/13
  Time: 14:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
%>
<%@ include file="../frame/head.jsp" %>
<html>
<style>
    .holder {
        margin: 15px 0;
        float: right;
    }

    .holder a {
        font-size: 14px;
        cursor: pointer;
        color: #428bca;
        position: relative;
        padding: 8px 12px;
        text-decoration: none;
        background-color: #fff;
        border: 1px solid #ddd;
        border-right: none;
    }

    .holder a:hover {
        color: #2a6496;
        background-color: #eee;
    }

    .holder a.jp-next {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        border-right: 1px solid #ddd;
    }

    .holder a.jp-current, a.jp-current:hover {
        color: #FF4242;
        font-weight: bold;
    }

    .holder a.jp-disabled, a.jp-disabled:hover {
        color: #bbb;

    }

    .holder a.jp-current, a.jp-current:hover,
    .holder a.jp-disabled, a.jp-disabled:hover {
        cursor: default;
        background: none;
    }

    .holder span {
        margin: 0 5px;
    }
</style>
<head>
    <script src="${basePath}/resources/investigation/js/question/questionList.js"></script>
    <title>试题管理</title>
</head>
<body>
<section>
    <%@include file="../frame/top.jsp" %>
    <section class="boxMain">
        <section class="hbox stretch">
            <%@include file="../frame/aside.jsp" %>
            <div>
                <header>
                    <h3 style="color: #0b6cbc;text-align: center">试题管理</h3>
                </header>
                <hr>
                <div>
                    <table class="title-table">
                        <tr>
                            <td>
                                <input id="creator" type="text" class="form-control" placeholder="创建者">
                            </td>
                            <td>
                                <select id="typeId" class="form-control">
                                    <option value="0">试题类型(全部)</option>
                                    <%--试题类型填充--%>
                                </select>
                            </td>
                            <td>
                                <select id="kindId" class="form-control">
                                    <option value="0">科目类别(全部)</option>
                                    <%--科目填充--%>
                                </select>
                            </td>
                            <td>
                                <select id="pointId" class="form-control">
                                    <option value="0">知识点(全部)</option>
                                    <%--知识点填充--%>
                                </select>
                            </td>
                            <td>
                                <button type="button" onclick="search()" class="btn btn-success">搜索</button>
                            </td>
                        </tr>
                    </table>
                </div>
                <br>
                <div id="list-content" class="">
                    <table class="table table-bordered">
                        <thead>
                        <tr class="success">
                            <td>序号</td>
                            <td>试题名称</td>
                            <td>试题类型</td>
                            <%--<td>答案选项</td>
                            <td>正确选项</td>--%>
                            <td>创建时间</td>
                            <td>创建人</td>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <thead id="tablist">
                        <%--表格数据填充--%>
                        </thead>
                    </table>
                </div>
            </div>
            <div id="page" class="holder"></div>
        </section>
    </section>
</section>

<!-- 遮罩层  编辑框 -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h4 class="modal-title">试题修改</h4>
            </div>
            <div class="modal-body">
                <input id="userid2" type="text" readonly hidden>
                <label style="font-size: 15px;">专业:</label>
                <select id="field" class="form-control"></select>
                <label style="font-size: 15px;">知识点:</label>
                <select id="point" class="form-control"></select>
               <%-- <label style="font-size: 15px;">难度:</label>
                <select id="answer" class="form-control">
                    <option id="1">简单</option>
                    <option id="2">中等</option>
                    <option id="3">难</option>
                </select>--%>
            </div>
            <div class="modal-footer">
                <button onclick="submit()" type="button" class="btn btn-success">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<!-- 遮罩层  删除框 -->
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span
                        aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <input id="userid" type="text" readonly hidden>
                <p style="font-size: 20px; color: red">确定删除试题? 此操作不可逆!</p>
                <button type="button" class="btn btn-danger" onclick="del()">删除</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
</body>
</html>
